package avicit.bdp.dcs.log.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

/**
 * @金航数码科技有限责任公司
 * @作者：liyb
 * @邮箱：liyb@avic-digital.com
 * @创建时间： 2020-08-05 08:35
 * @类说明：日志明细实体类
 * @修改记录：
 */
@Entity
public class TaskLogDetailDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    // 主键
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "taskInstanceId")
    private String taskInstanceId;

    // 迁移、同步流量，每秒从源库拉取到的数据量，单位为MB/s
    @ApiModelProperty(value = "迁移、同步流量，每秒从源库拉取到的数据量，单位为MB/s")
    private Double taskAvgSpeed;

    // 平均写入速度：每秒写入目标库的行数rec/s
    @ApiModelProperty(value = "平均写入速度：每秒写入目标库的行数rec/s")
    private Long taskWriteSpeed;

    // 记录性能数据的时间
    @ApiModelProperty(value = "记录性能数据的时间")
    private Date recordTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTaskInstanceId() {
        return taskInstanceId;
    }

    public void setTaskInstanceId(String taskInstanceId) {
        this.taskInstanceId = taskInstanceId;
    }

    public Double getTaskAvgSpeed() {
        return taskAvgSpeed;
    }

    public void setTaskAvgSpeed(Double taskAvgSpeed) {
        this.taskAvgSpeed = taskAvgSpeed;
    }

    public Long getTaskWriteSpeed() {
        return taskWriteSpeed;
    }

    public void setTaskWriteSpeed(Long taskWriteSpeed) {
        this.taskWriteSpeed = taskWriteSpeed;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

}